package com.xucy.springboot.designmodel.structural.decorator;

/**
 * @Author xucy
 * @Date 2019-07-18 10:37
 * @Description 鸡蛋装饰类
 **/

public class EggDecoration extends FoodDecoration{


    public EggDecoration(Cake cake) {
        super(cake);
    }

    @Override
    public String description() {
       return super.description()+"加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost()+2;
    }
}
